home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19990725-20000114 / 000101_news@columbia.edu _Wed Sep 15 12:52:16 1999.msg < prev    next >
Internet Message Format  |  2000-01-13  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA28223
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 15 Sep 1999 12:52:15 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA25737
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 15 Sep 1999 12:34:18 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: How do I pass Kermit parameters?
  11. Date: 15 Sep 1999 16:34:16 GMT
  12. Organization: Columbia University
  13. Message-ID: <7rohq8$p46$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <FI3K15.E6F@fcshome.stoneham.ma.us>,
  17. fred smith  <fredex@fcshome.stoneham.ma.us> wrote:
  18. : Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  19. : : In article <7rm5g7$v0a$1@nnrp1.deja.com>,  <dixonan@my-deja.com> wrote:
  20. : : : I want to pass Kermit parameters from my Visual Basic program.
  21. : : :  <snip>
  22. : : The methods for passing command-line arguments to a script are a bit
  23. : : awkward, since K95 (and C-Kermit 6.0, upon which it is based) have
  24. : : their own command-line arguments.  All of this will be simplified in the
  25. : : next releases (C-Kermit 7.0 and K95 1.1.18), but for the time being, you
  26. : : have two choices.  The first one is:
  27. : :   <path>k95 <name-of-script-file> = <arg1> <arg2> ...
  28. : <snip>
  29. : What I've done, with both C-Kermit and MS-Kermit, when I had a whole
  30. : bunch of things I wanted to pass to a kermit script was to put a (on
  31. : Unix) shellscript or (or DOS) batchfile wrapper around the invocation of
  32. : Kermit. This shellscript/batch file takes its own parameter list and/or
  33. : things from its environment, and writes a kermit script which assigns
  34. : those values to kermit variables, then as the last thing it does invokes
  35. : kermit with appropriate arguments to cause kermit to 'take' that kermit
  36. : script. (This tends to be a 3-stage operation: 1) run the batch file,
  37. : which builds the kermit script, 2) invoke kermit which runs the
  38. : newly-constructed script, and 3) that on-the-fly script then tends to
  39. : invoke the "real" script, the one that actually does the work, once it
  40. : has completed processing the various commands created on the fly by the
  41. : batch file). This shellscript/batch file, then, is invoked from within
  42. : some other program that wants to do some kind of complex thing with
  43. : Kermit.
  44. Like I said, (more than) a bit awkward! :-)  In the new releases, you'll be
  45. able to pass command-line arguments directly to the script and refer to
  46. them directly within the script.  You can see lots of examples in the
  47. C-Kermit/K95 script library at:
  48.  
  49.   http://www.columbia.edu/kermit/ckscripts.html
  50.  
  51. Also, the new versions let you have more than 10 arguments on the command
  52. line.  (And inq UNIX, you can even designate Kermit as the "shell" to execute
  53. a script, so you can run a Kermit script exactly the same way you would run a
  54. shell script.)
  55.  
  56. (We are working hard on the new releases and will release them as soon as
  57. they are ready.)
  58.  
  59. - Frank
  60.